var url = decodeURI(window.location.href.split("?")[1]);
	
//根据userId查询	
	//var projectId = url.split("id=")[1].split("&")[0];
	var companyId = url.split("id=")[1];
	if(companyId != undefined && companyId != ""){
		$.ajax({
			url: path + "company/selectCompanyInfoByCompanyId",
			type: "POST",
			data: JSON.stringify({'companyId': companyId}),
			dataType: "json",
			crossDomain: true,
			xhrFields: {
				withCredentials: true
			},
			async: false,
			contentType: 'application/json'
		}).done(function(data) {
			if(data != undefined){
				d = data
				if(d.companyLogo != undefined){
					$("#logoIco").attr("src",path+d.companyLogo)
				}
				
				if(d.companyInfo != undefined){
					var c = d.companyInfo
					$("#longName").html(c.name)
					$("#longName").attr("title",c.name)
					$("#shortName").html(c.jianjie)
					$("#shortName").attr("title",c.jianjie)
					$("#companyShortName").val(c.jianjie)
					$("#companyFeatures").val(c.introduce)
					$("#jianjie").html(c.introduce)
					$("#introduceLong").html(c.introduceLong)
					
					$("#city").html(c.location)
					$("#location").val(c.location)
					
					$("#lingyu").html(c.domain)
					$("#lingyu").attr("title",c.domain)
					$("#select_ind").val(c.domain)
					$("#comInd").val(c.domain)
					
					
					$("#guimo").html(c.scale)
					$("#select_sca").val(c.scale)
					$("#comSize").val(c.scale)
					
					$("#zuye").html(c.webSite)
					$("#zuye").attr("title",c.webSite)
					$("#zuye").attr("href",c.webSite)
					$("#companyUrl").val(c.webSite)
					var str = ""
					if(d.tag != undefined){
						for(tag in d.tag){
						str += "<li><span>"+d.tag[tag]+"</span></li>"
						
						}
						$("#hasLabels").html(str)
					}
					if(d.productImg != undefined){
						$("#productImg").attr("src", path + d.productImg)
						$("#productChangeImg").attr("src", path + d.productImg)
					}
					if(d.productInfo != undefined){
						p = d.productInfo
						$("#productName").html(p.productName)
						$("#productIntroduce").html(p.productRemark)
						$("#product").val(p.productName)
						$("#productUrl").val(p.productUrl)
						$("#productProfile").val(p.productRemark)
						$("#productType").val(p.productType)
					}
					if(d.founderInfo != undefined){
						f = d.founderInfo
						$("#founderName").html(f.founderName)
						$("#changeFounderName").val(f.founderName)
						
						$("#founderWeibo").attr("href", f.weibo)
						$("#changeFounderWeibo").val(f.weibo)
						
						$("#currentPosition").html(f.currentPosition)
						$("#changeFounderPosition").val(f.currentPosition)
						
						$("#foudnerIntroduce").html(f.founderIntroduce)
						
						$("#founderType").val(f.type)
						
						
					}
					if(d.founderIco){
						$("#founderIco").attr("src", path + d.founderIco)
						$("#changeFounderImg").attr("src", path + d.founderIco)
						
					}
					if(d.invest != undefined){
						i = d.invest
						$("#level").html(i['stage'])
						$("#financeStage").val(i['stage'])
						$("#select_fin").val(i['stage'])
						$("#invest_hidden").val(i['stage'])
						$("#select_invest").val(i['stage'])
						$("#invetName").val(i['org'])
						
					}
					
				}
				
			}
		})
	}else{
		window.location.href="index.html"
	}

